package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.SectorBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface ISectorMapper extends BaseMapper<SectorBean> {
      
      /**
       * 根据指定的时间段统计每个类别的销售额
       * @param star 起始时间
       * @param end 结束时间
       * @return 统计对象集合
       */
      public List<SectorBean> findByClasses(@Param("star") LocalDate star, @Param("end")LocalDate end);
      
}
